Skip to content

feat(init): mark the project as connected after init - #451

Draft
angeloashmore wants to merge 1 commit into
mainfrom
feat/init-complete-connect-step
Draft

angeloashmore wants to merge 1 commit into
mainfrom
feat/init-complete-connect-step

Conversation

@angeloashmore

@angeloashmore angeloashmore commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Resolves:

Description

Before this PR, only prismic pull and prismic sync completed the connectPrismic onboarding step. prismic init connected the project, but it did not complete the step.

The new project setup dialog in the dashboard (https://github.com/prismicio/editor/pull/2610) waits for this step before it unlocks. For example, a developer who ran only prismic init, as the dialog tells them, stayed on the locked dialog.

After this PR, prismic init completes the connectPrismic step after it syncs the models. If the onboarding service fails, init continues, as pull does.

Checklist

  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1

  1. In a Next.js project, run npx prismic init --repo <repository>.
  2. Open the repository in the dashboard. Make sure that the onboarding state includes connectPrismic.

Generated by Claude Code


Note

Low Risk
Adds a non-blocking onboarding API call aligned with existing pull/sync behavior; no auth or model-sync logic changes.

Overview
prismic init now marks the connectPrismic onboarding step complete after model sync and type generation, matching pull and sync. That lets the dashboard new-project setup dialog unlock when developers follow instructions to run only init.

Onboarding API failures are swallowed (.catch(() => {})), so init still succeeds if the step cannot be recorded.

The --repo integration test asserts connectPrismic appears in completed onboarding steps.

Reviewed by Cursor Bugbot for commit 8b573a5. Bugbot is set up for automated code reviews on this repo. Configure here.

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment. ↩

The Prismic dashboard waits for the `connectPrismic` onboarding step to
know that a project is connected. Only `prismic pull` and `prismic sync`
completed this step. A developer who ran only `prismic init` stayed on
the setup screen.

`prismic init` now completes the step after it syncs the models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L1dGD83ArFyyY1WATHG3zW
@angeloashmore
angeloashmore marked this pull request as draft November 2, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants